package com.visionarysoftwaresolutions

abstract class Product {
    String name
    String description
    BigDecimal price
    
    static hasMany = [ pictures : Picture ]
    
    static constraints = {
        name blank:false, unique:true
        description blank:false
        price min: new BigDecimal(0.0d)
    }
}
